<h1><%= title "Editing Estate" %></h1>

<% form_for(@estate) do |f| %>
  <%= f.error_messages %>

  <p>
		<%= f.label :character_id %><br />
    	<select name="estate[character_id]">
		<%= options_characters_select @estate.character_id %>
		</select>
  </p>
  <p>
		<%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
		<%= f.label :county_id %><br />
    	<select name="estate[county_id]">
		<%= options_county_select @estate.county_id %>
		</select>
  </p>
  <p>
		<%= f.label :size %><br />
    <%= f.text_field :size %>
  </p>
  <p>
		<%= f.label :masters %><br />
    <%= f.text_field :masters %>
  </p>
  <p>
		<%= f.label :grooms %><br />
    <%= f.text_field :grooms %>
  </p>
  <p>
		<%= f.label :pages %><br />
    <%= f.text_field :pages %>
  </p>
  <p>
		<%= f.label :ladies %><br />
    <%= f.text_field :ladies %>
  </p>
  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @estate %> |
<%= link_to 'Back', estates_path %>